package com.markerhub.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.markerhub.entity.HealthKnowledge;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jsx on 2023/1/27
 **/
@Repository
public interface HealthKnowledgeMapper extends BaseMapper<HealthKnowledge> {

    Page<HealthKnowledge> selectList(@Param("page") Page<HealthKnowledge> page, @Param("food") String food, @Param("type") String type);

    int insertAll(List<HealthKnowledge> healthKnowledgeList);

    List<HealthKnowledge> selectAllList();

}
